package me.numark;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;

import me.numark.fragments.ProfileFragment;


public class ProfileActivity extends FragmentActivity {

    public static final String EXTRA_UID = "uid";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fragment);
        String uid = getIntent().getStringExtra(EXTRA_UID);
        Bundle args = new Bundle();
        args.putString(ProfileFragment.USER_ID, uid);
        Fragment fragment = ProfileFragment.instantiate(this,
                ProfileFragment.class.getName(), args);
        getSupportFragmentManager().beginTransaction().add(R.id.fragment, fragment).commit();
    }
}
